package com.xnyzc.lhy.finance.service.wallet;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.finance.entity.wallet.OaDFreeze;

import java.math.BigDecimal;

/**
 * <p>
 * 余额冻结表 服务类
 * </p>
 *
 * @author cuixiaojian
 * @since 2019-10-24
 */
public interface IOaDFreezeService extends IService<OaDFreeze> {

    /**
     * 保存冻结金额
     * @param oaDFreeze 冻结金额信息
     * @return Map
     */
    Rv saveFreezeBalance(OaDFreeze oaDFreeze);

    /**
     * 清理冻结余额(解冻余额)
     * @return
     */
    Rv reFreezeBalance();

    /**
     * 修改冻结金额
     * @param orderNo 订单号
     * @param driverId 司机ID
     * @param amount 修改金额
     * @return
     */
    Rv updateFreezeBanlance(String orderNo, Long driverId, BigDecimal amount);

}
